package com.etone.smartAudit.dto.dataModel;

import com.etone.smartAudit.dto.FileDTO;
import com.etone.smartAudit.dto.dataMeta.DataMetaDTO;
import com.etone.smartAudit.enums.DataBaseType;
import com.etone.smartAudit.enums.UpdateFrequency;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/11/16
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "数据模型表单")
public class DataModelDTO implements Serializable {

    @ApiModelProperty("项目id")
    private Integer itemId;

    @ApiModelProperty("项目名称")
    private String itemName;

    @ApiModelProperty("宽表名称，中文表名")
    private String cnTableName;

    @ApiModelProperty("表名（数据字典）,英文表名")
    private String enTableName;

    @ApiModelProperty("服务器id")
    private Integer serverId;

    @ApiModelProperty("服务器名称")
    private String serverName;

    @ApiModelProperty("服务器ip")
    private String serverIp;

    @ApiModelProperty("数据库类型MYSQL,GREENPLUM,ORACLE,HADOOP")
    private DataBaseType dataBaseType;

    @ApiModelProperty("一级分类id")
    private Integer level1Id;

    @ApiModelProperty("一级分类")
    private String level1;

    @ApiModelProperty("二级分类id")
    private Integer level2Id;

    @ApiModelProperty("二级分类")
    private String level2;

    @ApiModelProperty(value = "敏感等级id")
    private Integer senLevelId;

    @ApiModelProperty(value = "等级名称")
    private String senLevel;

    @ApiModelProperty(value = "数据平台id")
    private Integer dataPssAId;

    @ApiModelProperty(value = "数据平台名称")
    private String dataPssA;

    @ApiModelProperty(value = "数据维护标签id集合")
    private String dataAssertIds;

    @ApiModelProperty(value = "数据维护标签名称")
    private String dataAssertNames;

    @ApiModelProperty(value = "质量维度标签id集合")
    private String dataMassIds;

    @ApiModelProperty(value = "质量维度标签名称")
    private String dataMassNames;

    @ApiModelProperty(value = "使用方维度标签id集合")
    private String dimensionIds;

    @ApiModelProperty(value = "使用方维度标签名称")
    private String dimensionNames;

    @ApiModelProperty(value = "自动化维度标签id集合")
    private String autoTagIds;

    @ApiModelProperty(value = "自动化维度标签名称")
    private String autoTagNames;

    @ApiModelProperty(value = "数据时效开始时间")
    private Date startDateTime;

    @ApiModelProperty(value = "数据时效结束时间")
    private Date endDateTime;

    @ApiModelProperty("三级分类id")
    private Integer level3Id;

    @ApiModelProperty("三级分类")
    private String level3;

    @ApiModelProperty("说明")
    private String description;

    @ApiModelProperty("系统平台id")
    private Integer platformId;

    @ApiModelProperty("更新频率")
    private UpdateFrequency updateFreq;

    @ApiModelProperty("保存周期")
    private Integer psvCycle;

    @ApiModelProperty("数据字典")
    private List<DataMetaDTO> dataMetas;

    @ApiModelProperty("数据样例")
    private List<FileDTO> dataExamples;

}
